package org.senseframework.support.orm.hibernate;

import org.hibernate.dialect.MySQL5Dialect;
import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.type.StandardBasicTypes;

/**
 * Created with IntelliJ IDEA.
 * User: lanjian
 * Date: 13-8-31
 * Time: 下午3:44
 * To change this template use File | Settings | File Templates.
 */
public class MysqlDialect extends MySQL5Dialect {
    public MysqlDialect() {
        super();
        registerFunction("distance", new SQLFunctionTemplate(StandardBasicTypes.DOUBLE, "distance(?1,?2,?3,?4)"));
    }
}
